import api from './index'
import { axios } from '@/utils/request'

export function login(parameter) {
  return axios({
    url: api.security.login,
    method: 'post',
    data: parameter
  })
}

export function getUserInfo(param) {
  return axios({
    url: api.security.userInfo,
    method: 'get'
  })
}

export function logout() {
  return axios({
    url: api.security.logout,
    method: 'post'
  })
}

export function getSmsCaptcha(param) {
  return axios({
    url: api.security.captcha,
    method: 'get',
    params: { uuid: 1234 }
  })
}
